import { constantRoutes } from '@/router/index.js'
export default {
  namespaced: true,
  state() {
    return {
      menuList: [] // 路由信息-菜单
    }
  },
  mutations: {
    setMenuList(state, newMenuList) {
      state.menuList = [...constantRoutes, ...newMenuList]
    }
  }
}
